<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
	    <script src="/static/js/sockjs.min.js"></script>
	    <!-- 引入本地 StompJS 文件 -->
	    <script src="/static/js/stomp.min.js"></script>
		
		 <!-- <script src="https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js"></script> -->
		<!-- <script src="https://cdn.jsdelivr.net/npm/stompjs@2.3.3/lib/stomp.min.js"></script> -->
		<script>
			// 全局使用websocket
			let socket = new SockJS("/socket/ws");
			//创建Stomp客户端实例
			let client = Stomp.over(socket);
			client.connect({}, (frame)=> {
				console.log("链接成功")
			});
		</script>
    <script>
      var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
        CSS.supports('top: constant(a)'))
      document.write(
        '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
        (coverSupport ? ', viewport-fit=cover' : '') + '" />')
    </script>
	
    <title></title>
    <!--preload-links-->
    <!--app-context-->
  </head>
  <body>
    <div id="app"><!--app-html--></div>
    <script type="module" src="/main.js"></script>
  </body>
</html>
